package com.xyoto.takeawayUser.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * orders
 *
 * @author
 */
@Data
@ApiModel("订单表")
public class Orders extends Base {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户地址id")
    private Integer userAddrId;

    @ApiModelProperty("送达时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date deliveryTime;

    @ApiModelProperty("预计送达时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date estimateTime;

    @ApiModelProperty("配送费（1元=100）")
    private Integer sendPrice;

    @ApiModelProperty("打包费（1元=100）")
    private Integer packPrice;

    @ApiModelProperty("订单总价（1元=100）")
    private Integer totalPrice;

    @ApiModelProperty("商品总数")
    private Integer shoppingTotal;

    @ApiModelProperty("支付金额（1元=100）")
    private Integer payerTotal;

    @ApiModelProperty("总金额（1元=100）")
    private Integer total;

    @ApiModelProperty("订单状态(1:处理中，2：已完成，3：已退款，4：已接单，5：订单异常)")
    private Short orderStatus;

    @ApiModelProperty("备注")
    private String remarks;

}